package com.ruoyi.StarStudio.Domain;

import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Tree {

    private Integer tree_id;  //果树序号
    @Excel(name = "果树类型")
    private String tree_type;  //果树类型
    @Excel(name = "果树产量")
    private Double tree_output;  //果树产量
    @Excel(name = "施肥种类")
    private String tree_fertilizer;  //施肥种类
    @Excel(name = "上次施肥时间", type = Excel.Type.EXPORT)
    private Timestamp tree_fertilizertime;  //上次施肥时间
    @Excel(name = "病虫害情况")
    private String tree_illandpests;  //病虫害情况
    @Excel(name = "农药种类")
    private String tree_pesticidetype;  //农药种类
    @Excel(name = "上次喷药时间", type = Excel.Type.EXPORT)
    private Timestamp tree_pesticidetime;  //上次打农药时间
    @Excel(name = "上次喷药用量")
    private Double tree_pesticideuse;  //上次农药使用量
    @Excel(name = "果树经度")
    private BigDecimal tree_longitude;  //果树经度
    @Excel(name = "果树纬度")
    private BigDecimal tree_latitude;  //果树纬度
    private Integer tree_zoneid;  //所属地块id
    @Excel(name = "所属地块")
    private String zone_name;  //地块名

    /** 请求参数 */
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}